package com.itrencai.d8_stream;

import java.util.*;
import java.util.stream.Stream;

public class QuLiu {
    public static void main(String[] args) {
        //--------------------Collection集合获取流-------------
        Collection<String> list=new ArrayList<>();
        Stream<String> s=list.stream();

        //--------------------Map集合获取流------------------
        Map<String,Integer> maps=new HashMap<>();
        //键流
        Stream<String> keyStream = maps.keySet().stream();
        //值流
        Stream<Integer> valueStream = maps.values().stream();
        //键值对
        Stream<Map.Entry<String, Integer>> keyandvalueStream = maps.entrySet().stream();


        //--------------------数组获取流------------------
        String[] names={"赵敏","小昭","灭绝","周芷若"};
        Stream<String> namesStream = Arrays.stream(names);
        Stream<String> namesStream2=Stream.of(names);


    }
}
